import request from "@/utils/request";

// 查询友情小程序链接列表
export function listBizFriendsLinks(query){
  return request({
    url: "/biz/bizFriendsLinks/list",
    method: "get",
    params: query
  })
}

// 查询友情小程序链接详细
export function getBizFriendsLinks(id){
  return request({
    url: "/biz/bizFriendsLinks/" + id,
    method: "get"
  })
}

// 新增友情小程序链接
export function addBizFriendsLinks(data){
  return request({
    url: "/biz/bizFriendsLinks",
    method: "post",
    data: data
  })
}

// 修改友情小程序链接
export function updateBizFriendsLinks(data){
  return request({
    url: "/biz/bizFriendsLinks",
    method: "put",
    data: data
  })
}

// 删除友情小程序链接
export function delBizFriendsLinks(id){
  return request({
    url: "/biz/bizFriendsLinks/" + id,
    method: "delete"
  })
}

// 查询最大编号
export function findMaxSort(){
  return request({
    url: "/biz/bizFriendsLinks/findMaxSort",
    method: "get"
  })
}
// 导出友情小程序链接
export function exportBizFriendsLinks (query){
  return request({
    url: "/biz/bizFriendsLinks/export",
    method: "get",
    params: query
  })
}
